package com.ecoolex.ying.space.ws;

import java.util.Date;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;
import com.ecoolex.ying.space.entity.PushMessage;

public interface PushMessageService {
	
	PushMessage addPushMessage(PushMessage record,String createUser) throws BizException;
	
	PushMessage editPushMessage(PushMessage record,String updateUser)throws BizException;
	
	void deletePushMessage(PushMessage record,String updateUser)throws BizException;
	
	PushMessage getPushMessageById(Integer id);
	
	Pagination<PushMessage> queryPushMessage(String title,Date startTime,Date endTime,Sorting[] sorts,Page page);
	
	Pagination<PushMessage> getPushMessageByReleaseUserIdForH5(Integer id,Page page);
	
	Pagination<PushMessage> queryPushMessageForH5(Date now,Page page);
	
	boolean updatePushMessageReadState(Integer readUserId,Integer releaseUserId, String updateUser);
	
	Integer unreadCount(Integer readUserId,Integer releaseUserId);
}
